//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.dflc.utils;

import com.fasterxml.jackson.annotation.JsonProperty;

public class PageSortEntity {
    @JsonProperty("field")
    private String field;
    @JsonProperty("type")
    private SortEnum type;

    public String getField() {
        return this.field;
    }

    public SortEnum getType() {
        return this.type;
    }

    @JsonProperty("field")
    public void setField(final String field) {
        this.field = field;
    }

    @JsonProperty("type")
    public void setType(final SortEnum type) {
        this.type = type;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof PageSortEntity)) {
            return false;
        } else {
            PageSortEntity other = (PageSortEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$field = this.getField();
                Object other$field = other.getField();
                if (this$field == null) {
                    if (other$field != null) {
                        return false;
                    }
                } else if (!this$field.equals(other$field)) {
                    return false;
                }

                Object this$type = this.getType();
                Object other$type = other.getType();
                if (this$type == null) {
                    if (other$type != null) {
                        return false;
                    }
                } else if (!this$type.equals(other$type)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PageSortEntity;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $field = this.getField();
        result = result * 59 + ($field == null ? 43 : $field.hashCode());
        Object $type = this.getType();
        result = result * 59 + ($type == null ? 43 : $type.hashCode());
        return result;
    }

    public String toString() {
        return "PageSortEntity(field=" + this.getField() + ", type=" + this.getType() + ")";
    }

    public PageSortEntity(final String field, final SortEnum type) {
        this.field = field;
        this.type = type;
    }

    public PageSortEntity() {
    }
}
